<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础</title>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <span>年龄= {{age}}</span>
    </div>

    <script src="../Day1/js/vue.js"></script>

    <script>
        //el:挂载区 不能挂载在body和html上
        //data 数据区 可以放多个数据
        var vm=new Vue({
            el:'#app',
            data:{
                msg:'你好 小黑!',
                age:'18'
            },
        });
    </script>
</body>
</html>